package com.lotusfall.s03;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest01 {
    @Test
    public void test01(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("s01/applicationConfig.xml");
        SomeService someService = (SomeService) ac.getBean("someService");
        System.out.println(someService.getClass());
        String s = someService.doSome("11", 1);
        System.out.println(s);

    }
    @Test
    public void test02(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("s03/applicationConfig.xml");
        SomeService someService = (SomeService) ac.getBean("someService");
        System.out.println(someService.getClass());
        String s = someService.doSome("11", 1);
        System.out.println(s);

    }
}
